import React, { memo } from 'react'
import {
  useNavigate
} from 'react-router-dom'
const Home = memo((props) => {
  const history = useNavigate()
  const jumpToProduct = () => {
    history('/about')
  }
  return (
    <div>
      <h2>33366</h2>
      <button onClick={() => jumpToProduct()}>商品</button>
    </div>
  )
})

export default Home